package StructuralPattern.BridgePattern;

import StructuralPattern.BridgePattern.color.Blue;
import StructuralPattern.BridgePattern.color.Green;
import StructuralPattern.BridgePattern.color.Red;
import StructuralPattern.BridgePattern.shape.*;

class TestBridgePattern {
    public static void main(String[] args) {

        Shape redCircle = new Circle(10, new Red());
        redCircle.draw();

        System.out.println();

        Shape greenRectangle = new Rectangle(20, 30, new Green());
        greenRectangle.draw();

        System.out.println();

        Shape blueEllipse = new Ellipse(15, 10, new Blue());
        blueEllipse.draw();

        System.out.println();

        Shape redSquare = new Square(5, new Red());
        redSquare.draw();
    }
}
